import Base from './base'

const api = new Base()

export const getGoodsList = (params) => api.get('/goods/page', params)
export const addGoods = (params) => api.post('/goods', params)

export const getCategoryList = () => api.get('/goodsCategory/list')
export const getGoodsDetail = (id) => api.get(`/goods/${id}`)
